package pub.xspace.nova.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pub.xspace.nova.system.domain.SysRole;
import pub.xspace.nova.system.mapper.SysRoleMapper;
import pub.xspace.nova.system.service.SysRoleService;

/**
 * 角色管理 Service实现类
 * 
 * @author HeJianrong
 */
@Service
public class SysRoleServiceImpl implements SysRoleService {

	@Autowired
	private SysRoleMapper roleMapper;

	@Override
	public List<SysRole> getRolesByUserId(String userId) {
		return roleMapper.selectRolesByUserId(userId);
	}

}
